/*
 * HC_test.cxx
 * 
 */


#include <iostream>
#include "HC_SR04.h"

using namespace std;

int main(int argc, char **argv)
{
	wiringPiSetup();
	Sonic sonic(3,4);
	sonic.init();
	while(1){
		delay(1000);
		printf("%.2f cm\n",sonic.value());
	}
	return 0;
}

